/* pages/profile/advice/advice.scss */
.advice-container {
  min-height: 100vh;
  background-color: #f8f9fa;
}

/* 标签页导航 */
.tab-nav {
  display: flex;
  background: white;
  border-bottom: 1rpx solid #e8e8e8;
  position: sticky;
  top: 0;
  z-index: 100;
}

.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20rpx 16rpx;
  transition: all 0.3s ease;
}

.tab-item.active {
  color: #1890ff;
}

.tab-icon {
  font-size: 32rpx;
  margin-bottom: 8rpx;
}

.tab-name {
  font-size: 24rpx;
  font-weight: 500;
}

/* 标签页内容 */
.tab-content {
  padding: 20rpx;
}

/* 搜索区域 */
.search-section {
  display: flex;
  gap: 12rpx;
  margin-bottom: 20rpx;
}

.search-box {
  flex: 1;
  position: relative;
  background: white;
  border-radius: 8rpx;
  overflow: hidden;
}

.search-input {
  width: 100%;
  padding: 16rpx 20rpx 16rpx 50rpx;
  font-size: 26rpx;
  color: #333;
  background: #f8f9fa;
  border: none;
}

.search-icon {
  position: absolute;
  left: 16rpx;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24rpx;
  color: #999;
}

.filter-btn {
  padding: 16rpx 24rpx;
  background: white;
  color: #666;
  border-radius: 8rpx;
  font-size: 24rpx;
  border: 1rpx solid #e8e8e8;
}

/* 医生列表 */
.doctors-list {
  display: flex;
  flex-direction: column;
  gap: 20rpx;
}

.doctor-card {
  background: white;
  border-radius: 12rpx;
  padding: 24rpx;
  box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.06);
}

.doctor-header {
  display: flex;
  align-items: center;
  margin-bottom: 16rpx;
}

.doctor-avatar {
  width: 80rpx;
  height: 80rpx;
  border-radius: 50%;
  margin-right: 16rpx;
}

.doctor-info {
  flex: 1;
}

.doctor-name-row {
  display: flex;
  align-items: center;
  margin-bottom: 8rpx;
}

.doctor-name {
  font-size: 28rpx;
  font-weight: 600;
  color: #333;
  margin-right: 12rpx;
}

.online-status {
  padding: 4rpx 12rpx;
  border-radius: 12rpx;
  font-size: 20rpx;
  font-weight: 500;
}

.online-status.online {
  background: #f6ffed;
  color: #52c41a;
}

.online-status.offline {
  background: #f0f0f0;
  color: #999;
}

.doctor-title {
  font-size: 24rpx;
  color: #1890ff;
  display: block;
  margin-bottom: 4rpx;
}

.doctor-hospital {
  font-size: 22rpx;
  color: #666;
}

.doctor-actions {
  display: flex;
  gap: 8rpx;
}

.action-btn {
  width: 60rpx;
  height: 60rpx;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24rpx;
  border: none;
}

.call-btn {
  background: #52c41a;
  color: white;
}

.detail-btn {
  background: #f0f0f0;
  color: #666;
}

/* 医生专长 */
.doctor-specialties {
  display: flex;
  flex-wrap: wrap;
  gap: 8rpx;
  margin-bottom: 16rpx;
}

.specialty-item {
  padding: 6rpx 12rpx;
  background: #e6f7ff;
  color: #1890ff;
  border-radius: 12rpx;
  font-size: 22rpx;
}

/* 医生统计 */
.doctor-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16rpx;
  margin-bottom: 16rpx;
  padding: 16rpx;
  background: #f8f9fa;
  border-radius: 8rpx;
}

.stat-item {
  text-align: center;
}

.stat-label {
  font-size: 20rpx;
  color: #999;
  display: block;
  margin-bottom: 4rpx;
}

.stat-value {
  font-size: 24rpx;
  font-weight: 600;
  color: #1890ff;
}

/* 医生简介 */
.doctor-introduction {
  margin-bottom: 20rpx;
}

.intro-text {
  font-size: 24rpx;
  color: #666;
  line-height: 1.4;
}

/* 咨询按钮 */
.consultation-actions {
  text-align: center;
}

.consult-btn {
  width: 100%;
  padding: 20rpx;
  background: #1890ff;
  color: white;
  border-radius: 8rpx;
  font-size: 28rpx;
  font-weight: 500;
  border: none;
}

.consult-btn.disabled {
  background: #d9d9d9;
  color: #999;
}

/* 咨询列表 */
.consultations-section {
  background: white;
  border-radius: 12rpx;
  padding: 24rpx;
  box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.06);
}

.consultations-list {
  display: flex;
  flex-direction: column;
  gap: 16rpx;
}

.consultation-item {
  display: flex;
  align-items: center;
  padding: 20rpx;
  border-radius: 8rpx;
  background: #f8f9fa;
  transition: background-color 0.2s ease;
}

.consultation-item:active {
  background: #e6f7ff;
}

.consultation-item .doctor-avatar {
  width: 80rpx;
  height: 80rpx;
  border-radius: 50%;
  margin-right: 16rpx;
}

.consultation-content {
  flex: 1;
}

.consultation-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8rpx;
}

.doctor-name {
  font-size: 26rpx;
  font-weight: 500;
  color: #333;
}

.consultation-time {
  font-size: 22rpx;
  color: #999;
}

.consultation-title {
  font-size: 24rpx;
  color: #1890ff;
  font-weight: 500;
  display: block;
  margin-bottom: 8rpx;
}

.consultation-message {
  font-size: 22rpx;
  color: #666;
  line-height: 1.4;
  margin-bottom: 8rpx;
}

.consultation-meta {
  display: flex;
  gap: 16rpx;
}

.meta-item {
  font-size: 20rpx;
  color: #999;
}

.consultation-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8rpx;
}

.status-badge {
  padding: 6rpx 12rpx;
  border-radius: 12rpx;
  font-size: 20rpx;
  font-weight: 500;
}

.status-badge.active {
  background: #e6f7ff;
  color: #1890ff;
}

.status-badge.completed {
  background: #f6ffed;
  color: #52c41a;
}

.status-badge.waiting {
  background: #e6f7ff;
  color: #1890ff;
}

.status-badge.pending {
  background: #fff7e6;
  color: #fa8c16;
}

.unread-badge {
  background: #ff4d4f;
  color: white;
  font-size: 20rpx;
  padding: 4rpx 8rpx;
  border-radius: 10rpx;
  min-width: 32rpx;
  text-align: center;
}

/* 空状态 */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80rpx 20rpx;
  text-align: center;
}

.empty-icon {
  font-size: 80rpx;
  margin-bottom: 20rpx;
}

.empty-text {
  font-size: 28rpx;
  color: #333;
  margin-bottom: 12rpx;
  font-weight: 500;
}

.empty-desc {
  font-size: 24rpx;
  color: #999;
}

/* 咨询表单弹窗 */
.consultation-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.consultation-modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  width: 90%;
  max-width: 600rpx;
  max-height: 80vh;
  background: white;
  border-radius: 12rpx;
  overflow: hidden;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.consultation-modal.show .modal-content {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24rpx;
  border-bottom: 1rpx solid #e8e8e8;
}

.modal-title {
  font-size: 32rpx;
  font-weight: 600;
  color: #333;
}

.close-btn {
  font-size: 40rpx;
  color: #999;
  cursor: pointer;
}

.modal-body {
  padding: 24rpx;
  max-height: 60vh;
  overflow-y: auto;
}

/* 选中的医生 */
.selected-doctor {
  display: flex;
  align-items: center;
  padding: 16rpx;
  background: #f8f9fa;
  border-radius: 8rpx;
  margin-bottom: 24rpx;
}

.selected-doctor .doctor-avatar {
  width: 60rpx;
  height: 60rpx;
  border-radius: 50%;
  margin-right: 12rpx;
}

.selected-doctor .doctor-name {
  font-size: 26rpx;
  font-weight: 500;
  color: #333;
  display: block;
  margin-bottom: 4rpx;
}

.selected-doctor .doctor-title {
  font-size: 22rpx;
  color: #666;
}

/* 咨询提示 */
.consultation-tip {
  text-align: center;
  padding: 40rpx 20rpx;
}

.tip-text {
  font-size: 28rpx;
  color: #333;
  font-weight: 500;
  display: block;
  margin-bottom: 12rpx;
}

.tip-desc {
  font-size: 24rpx;
  color: #666;
  display: block;
}

/* 咨询表单 */
.consultation-form {
  display: flex;
  flex-direction: column;
  gap: 20rpx;
}

.form-item {
  display: flex;
  flex-direction: column;
}

.form-label {
  font-size: 26rpx;
  color: #333;
  margin-bottom: 12rpx;
  font-weight: 500;
}

.form-input, .form-textarea {
  padding: 16rpx 20rpx;
  border: 2rpx solid #e8e8e8;
  border-radius: 8rpx;
  font-size: 26rpx;
  color: #333;
  background: #fafafa;
}

.form-textarea {
  min-height: 120rpx;
}

/* 紧急程度选择 */
.urgency-options {
  display: flex;
  gap: 12rpx;
}

.urgency-item {
  flex: 1;
  padding: 16rpx;
  text-align: center;
  border: 2rpx solid #e8e8e8;
  border-radius: 8rpx;
  font-size: 24rpx;
  color: #666;
  background: white;
  transition: all 0.3s ease;
}

.urgency-item.selected {
  border-color: #1890ff;
  color: #1890ff;
  background: #e6f7ff;
}

/* 附件 */
.attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 12rpx;
}

.attachment-item {
  position: relative;
  width: 120rpx;
  height: 120rpx;
}

.attachment-image {
  width: 100%;
  height: 100%;
  border-radius: 8rpx;
}

.remove-attachment {
  position: absolute;
  top: -8rpx;
  right: -8rpx;
  width: 32rpx;
  height: 32rpx;
  background: #ff4d4f;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20rpx;
  cursor: pointer;
}

.add-attachment {
  width: 120rpx;
  height: 120rpx;
  border: 2rpx dashed #d9d9d9;
  border-radius: 8rpx;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22rpx;
  color: #999;
  background: #fafafa;
}

/* 弹窗底部 */
.modal-footer {
  display: flex;
  gap: 16rpx;
  padding: 24rpx;
  border-top: 1rpx solid #e8e8e8;
}

.cancel-btn, .confirm-btn {
  flex: 1;
  padding: 20rpx;
  border-radius: 8rpx;
  font-size: 28rpx;
  font-weight: 500;
  border: none;
}

.cancel-btn {
  background: #f0f0f0;
  color: #666;
}

.confirm-btn {
  background: #1890ff;
  color: white;
}